package blogData.service.impl;

import account.entity.AccountVO;
import blogData.dao.BlogDataDao;
import blogData.entity.BlogDataVO;
import blogData.service.BlogDataService;

public class BlogDataServiceImpl implements BlogDataService {

    private BlogDataDao blogDataDao;

    public void setBlogDataDao(BlogDataDao blogDataDao) {
        this.blogDataDao = blogDataDao;
    }

    @Override
    public BlogDataVO findByBlogDataId(Integer blogDataId) {
        return blogDataDao.findBlogDataVOById(blogDataId);
    }

    @Override
    public BlogDataVO updateBlogDataVO(BlogDataVO blogDataVO) {
        return blogDataDao.updateBlogDataVO(blogDataVO);
    }

    @Override
    public BlogDataVO findBlogDataVOById(Integer blogDataId) {
        return blogDataDao.findBlogDataVOById(blogDataId);
    }

    @Override
    public BlogDataVO addBlogDataVO(BlogDataVO blogDataVO, AccountVO accountVO) {
        return blogDataDao.addBlogDataVO(blogDataVO, accountVO);
    }
}